package com.fly.feishu.infrastructure.exceptions;

import lombok.Getter;

/**
 * 业务异常
 */
public class BussinessException extends RuntimeException {

    @Getter
    private int code;

    public BussinessException() {
    }

    public BussinessException(int code, String message) {
        this(code, message, null);
    }

    public BussinessException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
    public BussinessException(Throwable cause) {
        super(cause);
    }

}
